package com.usefullc.system.param;

import com.usefullc.common.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Locale;

@ApiModel
@Data
public class AppDeviceParam extends BaseDomain {



//    @NotBlank(message = "设备号不能为空")
    @ApiModelProperty(notes = "设备ID",required = true)
    private String deviceId;

    @NotBlank(message = "平台不能为空")
    @ApiModelProperty(notes = "平台（IOS,Android,H5)",required = true,example = "IOS")
    private String platform;

    @NotBlank(message = "应用名称不能为空")
    @ApiModelProperty(notes = "应用名称",required = true,example = "blog")
    private String appName;

    @NotBlank(message = "应用版本号不能为空")
    @ApiModelProperty(notes = "应用版本号",required = true,example = "1.0.0")
    private String appVersion;

    @NotBlank(message = "系统名称不能为空")
    @ApiModelProperty(notes = "系统名称",required = true,example = "iphone|Chrome")
    private String systemName;

    @NotBlank(message = "系统版本不能为空")
    @ApiModelProperty(notes = "系统版本号",required = true,example = "8.0")
    private String systemVersion;

    @NotNull(message = "设备屏幕宽度不能为空")
    @ApiModelProperty(notes = "设备屏幕宽度",required = true,example = "1334")
    private Integer deviceWidth;


    @NotNull(message = "设备屏幕高度不能为空")
    @ApiModelProperty(notes = "设备屏幕高度",required = true,example = "760")
    private Integer deviceHeight;

    @NotBlank(message = "设备号不能为空")
    @ApiModelProperty(notes = "设备版本号",example = "HUAWEI CLT-AL01|Mac",name="设备版本号")
    private String deviceVersion;


//    @NotBlank(message = "地区")
    @ApiModelProperty(notes = "区域简",required = false,example = "zh")
    private String local = Locale.getDefault().getCountry();




}
